package com.ptszyxx.popose.module.main.trip.vm;

import android.app.Application;

import androidx.annotation.NonNull;
import androidx.databinding.ObservableField;

import com.ptszyxx.popose.common.utils.YActivityUtil;
import com.ysg.base.BaseViewModel;
import com.ysg.binding.command.BindingCommand;
import com.ysg.http.data.CommonRepository;
import com.ysg.http.data.entity.trip.TripEntity;

public class TripDetailVM extends BaseViewModel<CommonRepository> {
    public ObservableField<TripEntity> entity = new ObservableField<>();

    public TripDetailVM(@NonNull Application application, CommonRepository model) {
        super(application, model);
    }

    public UIChangeObservable uc = new UIChangeObservable();
    public class UIChangeObservable {
    }

    public BindingCommand onJumpCommand = new BindingCommand(()->{
        YActivityUtil.getInstance().jumpUserDetail(this, entity.get().getUserId());
    });




}
